package cc.yugu.yhdw.webserver.persistence.hdw;

import cc.yugu.yhdw.common.domain.hdw.UnregisterBattery;
import cc.yugu.yhdw.common.persistence.MasterMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
/**
 * 电池信息
 * 
 * @Date:Created in 2018/7/2 10:16
 * @Author:
 * @Modified By: zjn 2018/7/2 10:16
 */ 
public interface UnregisterBatteryMapper extends MasterMapper {
    /**
    * 按主键查询表hdw_unregister_battery
    * 
    * @Param: [id]
    * @Return: cc.yugu.yhdw.common.domain.hdw.UnregisterBattery
    * @Author By: zjn 2018/7/2  10:16
    */ 
    UnregisterBattery find(@Param("id") String id);
    /**
    * 返回行数
    * 
    * @Param: [unregisterBattery]
    * @Return: int
    * @Author By: zjn 2018/7/2  10:16
    */ 
    int findPageCount(UnregisterBattery unregisterBattery);
    /**
    * 分页查询，并将查询结果按照创建时间降序排列
    * 
    * @Param: [unregisterBattery]
    * @Return: java.util.List<cc.yugu.yhdw.common.domain.hdw.UnregisterBattery>
    * @Author By: zjn 2018/7/2  10:16
    */ 
    List<UnregisterBattery> findPageResult(UnregisterBattery unregisterBattery);
    /**
    * 按主键删除
    * 
    * @Param: [id]
    * @Return: int
    * @Author By: zjn 2018/7/2  10:16
    */ 
    int delete(@Param("id") String id);
}
